home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / CIIGSIncludes / Desk.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-01  |  2.5 KB  |  78 lines  |  [TEXT/MPS ]

  1. /********************************************
  2. ; File: Desk.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc.1986-90
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9.  
  10. #ifndef __TYPES__
  11. #include <TYPES.h>
  12. #endif
  13.  
  14. #ifndef __QUICKDRAW__
  15. #include <QUICKDRAW.h>
  16. #endif
  17.  
  18. #ifndef __EVENT__
  19. #include <EVENT.h>
  20. #endif
  21.  
  22. #ifndef __DESK__
  23. #define __DESK__
  24.  
  25.  
  26. /* Error Codes */
  27. #define daNotFound 0x0510  /* desk accessory not found */
  28. #define notSysWindow 0x0511  /* not the system window */
  29.  
  30. /* NDA Action Codes */
  31. #define eventAction 0x0001
  32. #define runAction 0x0002
  33. #define undoAction 0x0005
  34. #define cutAction 0x0006
  35. #define copyAction 0x0007
  36. #define pasteAction 0x0008
  37. #define clearAction 0x0009
  38. #define cursorAction 0x0003
  39.  
  40. /* SystemEdit Codes */
  41. #define undoEdit 0x0001
  42. #define cutEdit 0x0002
  43. #define copyEdit 0x0003
  44. #define pasteEdit 0x0004
  45. #define clearEdit 0x0005
  46.  
  47. extern pascal void AddToRunQ() inline(0x1F05,dispatcher);
  48. extern pascal void ChooseCDA() inline(0x1105,dispatcher);
  49. extern pascal void CloseAllNDAs() inline(0x1D05,dispatcher);
  50. extern pascal void CloseNDA() inline(0x1605,dispatcher);
  51. extern pascal void CloseNDAByWinPtr() inline(0x1C05,dispatcher);
  52. extern pascal void DeskBootInit() inline(0x0105,dispatcher);
  53. extern pascal void DeskReset() inline(0x0505,dispatcher);
  54. extern pascal void DeskShutDown() inline(0x0305,dispatcher);
  55. extern pascal void DeskStartUp() inline(0x0205,dispatcher);
  56. extern pascal Boolean DeskStatus() inline(0x0605,dispatcher);
  57. extern pascal Word DeskVersion() inline(0x0405,dispatcher);
  58. extern pascal void FixAppleMenu() inline(0x1E05,dispatcher);
  59. extern pascal Pointer GetDAStrPtr() inline(0x1405,dispatcher);
  60. extern pascal Word GetNumNDAs() inline(0x1B05,dispatcher);
  61. extern pascal void InstallCDA() inline(0x0F05,dispatcher);
  62. extern pascal void InstallNDA() inline(0x0E05,dispatcher);
  63. extern pascal Word OpenNDA() inline(0x1505,dispatcher);
  64. extern pascal void RemoveCDA() inline(0x2105,dispatcher);
  65. extern pascal void RemoveFromRunQ() inline(0x2005,dispatcher);
  66. extern pascal void RemoveNDA() inline(0x2205,dispatcher);
  67. extern pascal void RestAll() inline(0x0C05,dispatcher);
  68. extern pascal void RestScrn() inline(0x0A05,dispatcher);
  69. extern pascal void SaveAll() inline(0x0B05,dispatcher);
  70. extern pascal void SaveScrn() inline(0x0905,dispatcher);
  71. extern pascal void SetDAStrPtr() inline(0x1305,dispatcher);
  72. extern pascal void SystemClick() inline(0x1705,dispatcher);
  73. extern pascal Boolean SystemEdit() inline(0x1805,dispatcher);
  74. extern pascal Boolean SystemEvent() inline(0x1A05,dispatcher);
  75. extern pascal void SystemTask() inline(0x1905,dispatcher);
  76.  
  77. #endif
  78.